//************************************************
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_install_request.js中编写
//************************************************
export default function () {
	return {
		editFormFields: { Install_request: '', Voucher_sub: '', Sales_sub: '', Client: '', Install_date: '', Install_status: '', Install_address: '', Remark: '' },
		editFormOptions: [
			{ title: 'ID', field: 'Install_request', type: 'string', readonly: true, hidden: true },
			{ title: '单据编码', field: 'Voucher_sub', type: 'text', readonly: true },
			{ title: '销售单', required: true, field: 'Sales_sub', type: 'text' },
			{ key: '无条件客户', data: [], title: '客户', field: 'Client', type: 'select', readonly: true },
			{ title: '安装日期', required: true, field: 'Install_date', type: 'datetime' },
			{ key: '安装状态', data: [], title: '安装状态', field: 'Install_status', type: 'select', readonly: true, hidden: true },
			{ title: '安装地址', required: true, field: 'Install_address', type: 'textarea' },
			{ title: '数量', field: 'Goods_num', type: 'text', readonly: true, hidden: true },
			{ title: '备注', field: 'Remark', type: 'textarea' }
		],
		searchFormFields: { Voucher_sub: '', Sales_sub: '', Client: '', Install_date: '', Install_status: '', AuditStatus: '', Creator: '' },
		searchFormOptions: [
			{ title: '单据编码', field: 'Voucher_sub', type: 'like' },
			{ title: '销售单', field: 'Sales_sub', type: 'like' },
			{ key: '无条件客户', data: [], title: '客户', field: 'Client', type: 'select' },
			{ key: '安装状态', data: [], title: '安装状态', field: 'Install_status', type: 'select' },
			{ title: '安装日期', field: 'Install_date', type: 'datetime' },
			{ key: 'audit', data: [], title: '审核状态', field: 'AuditStatus', type: 'select' },
			{ title: '创建人员', field: 'Creator' }
		],
		columns: [
			{ field: 'Install_request', title: 'ID', type: 'string', readonly: true, hidden: true },
			{ field: 'Voucher_sub', title: '单据编码', type: 'string', link: true },
			{ field: 'Sales_sub', title: '销售单', type: 'string' },
			{ field: 'Client', title: '客户', type: 'int', bind: { key: '无条件客户', data: [] } },
			{ field: 'Install_date', title: '安装日期', type: 'datetime' },
			{ field: 'Install_status', title: '安装状态', type: 'int', bind: { key: '安装状态', data: [] } },
			{ field: 'AuditStatus', title: '审核状态', type: 'int', bind: { key: 'audit', data: [] } },
			{ field: 'Install_address', title: '安装地址', type: 'string' },
			{ field: 'Remark', title: '备注', type: 'string' }
		],
		table: {
			key: 'Install_request',
			footer: 'Foots',
			cnName: '安装申请单',
			name: 'q_install_request',
			url: '/q_install_request/',
			sortName: 'Voucher_sub'
		}
	};
}
